package me.liyiren.shirojwtdemo.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by kino on 18-12-13.
 */
public class DataSource {

    public static Map<String, Map<String, String>> getData() {
        Map<String, Map<String, String>> datas = new HashMap<>();

        Map<String, String> data1 = new HashMap<>();
        data1.put("password", "123");
        data1.put("role", "user");
        data1.put("permission", "view");

        Map<String, String> data2 = new HashMap<>();
        data2.put("password", "456");
        data2.put("role", "admin");
        data2.put("permission", "view,edit");

        datas.put("smith", data1);
        datas.put("danny", data2);

        return datas;
    }

}
